package com.ljx.NoteBody.service;

import com.ljx.NoteBody.dto.NoteDto;
import com.ljx.NoteBody.entity.Note;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface NoteService {

    void saveNote(NoteDto noteDto, HttpServletRequest httpServletRequest);
    Map<String, Object> newNotes(int page, int pageSize, String username);
    NoteDto selectNoteById(Long id);
    void updateNote(NoteDto noteDto, HttpServletRequest httpServletRequest);
    List<Note> queryHotNotes();
    void deleteNote(Long noteId);
}
